<!DOCTYPE html>
<html>
<head>
<style>
section {
    position: absolute;
    display: block;
    left: 0;
    width: 64px;
    height: 64px;
    background: cadetblue;
    transition: all 3s ease;
    -moz-transition: all 3s ease;
}
</style>
</head>
<body>
<section></section>
<script>
var sections = document.getElementsByTagName('section');
sections[0].setAttribute('style', "left: 0; top: 0");
setTimeout(function() {
    sections[0].setAttribute('style', "left: 512px; top: 512px");
}, 0);
</script>
</body>
</html>


